import ajax from './ajax'
import config from 'src/config'
export const request = ajax;

export const login = (data, showMsg)=>ajax({
  url:config.tokenUrl + '/token',
  data,
  method: 'post',
  showMsg,
  config: {
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
  }
})
export const GetUserCommonProj = (data,showMsg)=>ajax({
  url:config.apiUrl+'/Mobile/Daily/GetUserCommonProj',
  data,showMsg
})
export const SaveDaily = (data,showMsg)=>ajax({
  url:config.apiUrl+'/Mobile/Daily/SaveDaily',
  data,showMsg,method:'post'
})
